﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Weiz.TaskManager.DAL;
using Weiz.TaskManager.Models;

namespace Weiz.TaskManager.BLL
{
    public class ProductBLL
    {
        private readonly ProductDAL dal = new ProductDAL();


        public bool Add(Product model,out string msg)
        {
            return dal.Add(model,out msg);
        }



        public Product GetProductById(string id)
        {
            return dal.GetProductById(id);
 
        }

        public Product GetProductByName(string name)
        {
            return dal.GetProductByName(name);
 
        }
    }
}
